﻿<%@ Page language="c#" Codebehind="bloggerhome.aspx.cs" AutoEventWireup="true" Inherits="client.bloggerhome" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>forumMain</title>
		<meta content="False" name="vs_snapToGrid">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<LINK href="../springofwater.css" type="text/css" rel="stylesheet">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<style>A { TEXT-DECORATION: none }
	A:hover { TEXT-TRANSFORM: uppercase; COLOR: red }
		</style>
	</HEAD>
	<body >
		<div align="center">
			<form id="Form1" method="post" runat="server">
				<div align="center">
					<table id="table781" width="80%" border="0">
						<tr>
							<td align="center">
								<% Server.Execute("header.aspx");%>
							</td>
						</tr>
					</table>
				</div>
				<div align="center">
					<table style="WIDTH: 779px; HEIGHT: 25px" cellSpacing="0" cellPadding="0" align="center"
						border="0">
						<tr>
							<td>
								<ul style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 98.87%; PADDING-TOP: 0px; FONT-FAMILY: SimSun; LIST-STYLE-TYPE: none; HEIGHT: 25px; BACKGROUND-COLOR: white">
									<li style="DISPLAY: inline">
										<A class="menu" href="index.aspx">泉源首页</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="forumsStart.aspx">泉源论坛</A>
									<li style="DISPLAY: inline">
										<A class="selected" href="bloggermain.aspx">泉源博客</A>
									<li style="DISPLAY: inline">
										<A class="empty" href="jianzao.aspx"></A>
									<li style="DISPLAY: inline">
										<A class="menu" href="dengji.aspx">注册登记</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="women.aspx">关于我们</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="mailto:contact@springofwater.net">联络我们</A>
									</li>
								</ul>
							</td>
						</tr>
					</table>
				</div>
				<div style="TEXT-DECORATION: none" align="center">
					<TABLE style="WIDTH: 781px; HEIGHT: 336px" borderColor="#5d9dd1" cellSpacing="0" cellPadding="0"
						border="1">
						<tr>
							<td style="WIDTH: 527px; HEIGHT: 14px" vAlign="top" align="left" bgColor="#0099ff">
								<TABLE id="Table1" style="WIDTH: 773px; HEIGHT: 19px" cellSpacing="0" cellPadding="0" width="773"
									border="0">
									<TR>
										<TD style="WIDTH: 10%"><asp:button id="Button1" runat="server" BackColor="LightSeaGreen" BorderColor="Lime" Text="  博客总览"
												BorderStyle="Inset" OnClick="Button1_Click1"></asp:button></TD>
										<TD style="WIDTH: 10%"><asp:button id="Button2" runat="server" BackColor="LightSeaGreen" Text="发表新文章" OnClick="Button2_Click1"></asp:button></TD>
										<TD style="WIDTH: 10%"><asp:button id="Button3" runat="server" BackColor="LightSeaGreen" Text="文章列表/编辑" OnClick="Button3_Click1"></asp:button></TD>
										<TD style="WIDTH: 10%"><asp:button id="Button4" runat="server" BackColor="LightSeaGreen" Text="评论列表/编辑" OnClick="Button4_Click1"></asp:button></TD>
										<TD style="WIDTH: 60%"></TD>
									</TR>
								</TABLE>
							</td>
						</tr>
						<TR>
							<TD style="WIDTH: 527px; HEIGHT: 21px" vAlign="top" align="left">
								<TABLE id="Table2" style="WIDTH: 776px; HEIGHT: 27px" cellSpacing="0" cellPadding="0" width="776"
									bgColor="#cccccc" border="0">
									<TR>
										<TD style="HEIGHT: 15px"></TD>
									</TR>
									<TR>
										<TD style="HEIGHT: 15px"><FONT size="2">文章总数: <FONT color="#ffffff"><FONT color="#000099">
														<% Response.Write(GetTotalPosts()); %>
													</FONT>&nbsp;&nbsp;&nbsp;</FONT> &nbsp; <FONT size="2">评论总数: <FONT color="#000099">
														<% Response.Write(GetTotalPostReplies()); %>
													</FONT>&nbsp;</FONT></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A href='bloggerweb.aspx?UserID=<% Response.Write(Request.QueryString["UserID"]); %>' >
												<FONT color="#0000ff" size="2"><U>访问你自己的博客网页</U></FONT></A></TD>
									</TR>
									<TR>
										<TD style="HEIGHT: 15px"></TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
						<TR>
							<TD style="WIDTH: 527px; HEIGHT: 30px" vAlign="top" align="left">
								<TABLE id="Table13" style="WIDTH: 776px; HEIGHT: 29px" cellSpacing="0" cellPadding="0" width="776"
									border="0">
									<TR bgColor="#cccccc">
										<TD style="HEIGHT: 15px" vAlign="top" align="left"><FONT size="2">&nbsp;&nbsp; 最新5篇文章 (<FONT color="#0000ff">显示所有文章</FONT>)</FONT></TD>
									</TR>
									<TR>
										<TD vAlign="top" align="left" bgColor="#ffffff">
											<TABLE id="Table55" style="WIDTH: 772px; HEIGHT: 19px" cellSpacing="1" cellPadding="0" width="772"
												border="0">
												<TR bgColor="#cccccc">
													<TD style="WIDTH: 40%" vAlign="middle" align="left" colSpan="1" rowSpan="1"><FONT color="#009900" size="2">标题</FONT></TD>
													<TD style="WIDTH: 30%" vAlign="middle" align="left"><FONT color="#009900" size="2">日期</FONT></TD>
													<TD></TD>
												</TR>
											</TABLE>
										</TD>
									</TR>
									<TR>
										<TD vAlign="top" align="left" bgColor="#ffffff">
											<TABLE id="Table4" style="WIDTH: 774px" height="78" cellSpacing="0" cellPadding="0" width="774"
												border="0">
												<ASP:REPEATER id="Repeater2" runat="server">
													<ItemTemplate>
														<TR style="FONT-SIZE: smaller">
															<TD style="WIDTH: 40%"><%# DataBinder.Eval(Container.DataItem, "Subject") %></TD>
															<TD style="WIDTH: 30%"><%# Utilities.Helper.formatDate(DataBinder.Eval(Container.DataItem, "CreateDate")) %></TD>
														</TR>
													</ItemTemplate>
													<AlternatingItemTemplate>
														<tr bgcolor="AliceBlue" style="FONT-SIZE: smaller">
															<TD><%# DataBinder.Eval(Container.DataItem, "Subject") %></TD>
															<TD><%# Utilities.Helper.formatDate(DataBinder.Eval(Container.DataItem, "CreateDate")) %></TD>
														</tr>
													</AlternatingItemTemplate>
												</ASP:REPEATER></TABLE>
										</TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
						<TR>
							<TD style="WIDTH: 527px; HEIGHT: 143px" vAlign="top" align="left">
								<TABLE id="Table37" style="WIDTH: 776px" cellSpacing="0" cellPadding="0" width="776" border="0">
									<tr>
										<td style="HEIGHT: 18px">&nbsp;&nbsp;&nbsp;&nbsp;
										</td>
									</tr>
									<TR bgColor="#cccccc">
										<TD vAlign="middle" align="left" colSpan="1" rowSpan="1"><FONT size="2">&nbsp;&nbsp; 
												最新5篇评论 (<FONT color="#0000ff">显示所有评论</FONT>)</FONT></TD>
									</TR>
									<TR>
										<TD vAlign="top" align="left" bgColor="#ffffff">
											<TABLE id="Table5" style="WIDTH: 772px; HEIGHT: 19px" cellSpacing="1" cellPadding="0" width="772"
												border="0">
												<TR align="center" bgColor="#cccccc">
													<TD style="WIDTH: 40%" vAlign="middle" align="left" colSpan="1" rowSpan="1"><FONT color="#009900" size="2">评论</FONT></TD>
													<TD style="WIDTH: 30%" vAlign="middle" align="left"><FONT color="#009900" size="2">所评论的文章</FONT></TD>
													<TD style="WIDTH: 20%" vAlign="middle" align="left"><FONT color="#009900" size="2">日期</FONT></TD>
													<TD style="WIDTH: 10%"><FONT color="#009900" size="2">评论人</FONT></TD>
												</TR>
												<asp:repeater id="Repeater1" runat="server">
													<ItemTemplate>
														<TR style="FONT-SIZE: smaller">
															<TD style="WIDTH: 40%"><%# Utilities.Helper.FindLeadingWords(System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["body"]),20) %></TD>
															<TD style="WIDTH: 30%"><%#  DataBinder.Eval(Container.DataItem, "OriginalSubject")%></TD>
															<TD style="WIDTH: 20%"><%# Utilities.Helper.formatDate(DataBinder.Eval(Container.DataItem, "CreateDate")) %></TD>
														</TR>
													</ItemTemplate>
													<AlternatingItemTemplate>
														<tr bgcolor="AliceBlue" style="FONT-SIZE: smaller">
															<TD style="WIDTH: 40%"><%# Utilities.Helper.FindLeadingWords(System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["body"]),20) %></TD>
															<TD style="WIDTH: 30%"><%#  DataBinder.Eval(Container.DataItem, "OriginalSubject")%></TD>
															<TD style="WIDTH: 20%"><%# Utilities.Helper.formatDate(DataBinder.Eval(Container.DataItem, "CreateDate")) %></TD>
														</tr>
													</AlternatingItemTemplate>
												</asp:repeater></TABLE>
										</TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
					</TABLE>
					
			</form>
		</div>
		<DIV align="center">
			<table id="table81" width="80%" border="0">
				<tr>
					<td align="center">
						<% Server.Execute("tail.aspx");%>
					</td>
				</tr>
			</table>
		</DIV>
	</body>
</HTML>
